<include file="public:headtop" />
<title>会员中心 - 我的地址</title>
<link href="__STATIC__/weixin/css/shop.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__STATIC__/weixin/js/jquery.js" charset="utf-8"></script>
<script type="text/javascript" src="__STATIC__/weixin/js/ecmall.js" charset="utf-8"></script>
<script type="text/javascript" src="__STATIC__/weixin/js/touchslider.dev.js" charset="utf-8"></script>

<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/dialog.js" id="dialog_js"></script>
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/jquery.ui.js" ></script>
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/jquery.validate.js" ></script>
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/mlselection.js" ></script>
<script type="text/javascript" language="javascript" src='__STATIC__/weixin/js/dizhi2.js'></script>
<script>
  var PCAD = "{$address_str}";
</script>
<script type="text/javascript" language="javascript" src='__STATIC__/weixin/js/diqu2.js'></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/weixin/css/jquery.ui.css" /></head>

<body onLoad="setup()">
<include file="public:head" />
<script type="text/javascript" src="__STATIC__/weixin/js/jquery_002.js" charset="utf-8"></script>
<script type="text/javascript">
//<!CDATA[
$(function(){
    regionInit("region");
    $('#address_form').validate({
        /*errorPlacement: function(error, element){
            var _message_box = $(element).parent().find('.field_message');
            _message_box.find('.field_notice').hide();
            _message_box.append(error);
        },
        success       : function(label){
            label.addClass('validate_right').text('OK!');
        },*/
        errorLabelContainer: $('#warning'),
        invalidHandler: function(form, validator) {
           var errors = validator.numberOfInvalids();
           if(errors)
           {
               $('#warning').show();
           }
           else
           {
               $('#warning').hide();
           }
        },
        onkeyup : false,
        rules : {
            consignee : {
                required : true
            },
            sheng : {
                required : true
              
            },
            address   : {
                required : true
            },
            phone_mob : {
                required : true,
                minlength:6,
                digits : true
            }
        },
        messages : {
            consignee : {
                required : '请填写收货人姓名. '
            },
            sheng : {
                required : '请选择所在地区. '
             
            },
            address   : {
                required : '请填写详细地址. '
            },
            phone_mob : {
                required : '固定电话和手机请至少填写一项. ',
                minlength: '错误的手机号码,只能是数字,并且不能少于6位. ',
                digits : '错误的手机号码,只能是数字,并且不能少于6位. '
            }
        }
    });
});
function check_phone(){
    return ($('[name="phone_tel"]').val() == '' && $('[name="phone_mob"]').val() == '');
}
function hide_error(){
    $('#region').find('.error').hide();
}
//]]>
</script>
<div class="eject_con" id="content">
    <div class="add">
    
        <div id="warning"></div>
        <form method="post" action="{:u('user/address')}" id="address_form">
        <input type="hidden" name="id" value="{$info.id}" />
            <ul class="form_address">

                <li>
                    <p class="title mt10">地　址：

                        {$info.sheng}{$info.shi}{$info.qu}{$info.business_area}{$info.building}
    
                    </p>
                </li>

                <li>
                    <p class="title mt10">收货人：
                    <input value="{$info.consignee}" name="consignee" id="consignee" class="text" type="text"><label class="field_message"><span class="field_notice"></span></label>
                    </p>
                </li>
                <li>
                    <p class="title">门牌号：<input value="{$info.address}" name="address" id="address" class="text width1" type="text"><label class="field_message"><span class="field_notice"></span></label></p>

                </li>
                <li>
                    <p class="title">手机号：<input id="phone_mob" name="phone_mob" class="text" type="text" value="{$info.mobile}"><label class="field_message"><span class="field_notice"></span></label></p>
                    
                    <!-- <p><input value="" id="phone_mob" name="phone_mob" class="text" type="text"></p> -->
                </li>
                
            </ul>
            <div class="submit" style="margin:20px">
                <img onclick="$('#address_form').submit()" src="/static/weixin/images/index/submit.png" alt="" style="width:100%">
            </div>
        </form>
    </div>
     
</div>
<include file="public:footer" />

</body></html>

